//
//  CaseDBaseModel.m
//  HomeFurnishing
//
//  Created by dllo on 16/3/28.
//  Copyright © 2016年 YMing. All rights reserved.
//

#import "CaseDBaseModel.h"

@implementation CaseDBaseModel
-(void)dealloc
{
    [_title release];
    [_small release];
    [_detailAddress release];
    [_stageShow release];
    [_coverPhoto release];
    [_cost release];
    [_typeShow release];
    [_styleShow release];
    [_buildingName release];
    [_areaShow release];
    //[_large release];
    [_userName release];
    //[_taskRun release];
    [super dealloc];
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"user"]) {
        self.small = value[@"userImage"][@"large"];
        self.userName = value[@"userName"];
    }
//    if ([key isEqualToString:@"taskRun"]) {
//        self.taskRun = value[@"space"];
//    }
    if ([key isEqualToString:@"id"]) {
        self.mId = value;
    }
    
}
@end
